import request from '@/utils/request'

// 查询角色列表
export function page(pageNum,pageSize) {
  return request({
    url: '/product/productAttributeCategory/page?pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get',
  })
}

export function delect(id) {
  return request({
    url: '/product/productAttributeCategory/delect?id='+id,
    method: 'post',
    data:id
  })
}
export function getValueByid(id,type) {
  return request({
    url: '/product/productAttributeCategory/getValueByid?id='+id+'&type='+type,
    method: 'get',
  })
}

export function getValueByid2(id,type) {
  return request({
    url: '/product/productAttributeCategory/getValueByid2?id='+id+'&type='+type,
    method: 'get',
  })
}

export function add(data) {
  return request({
    url: '/product/productAttributeCategory/add',
    method: 'post',
    data
  })
}


export function update(data) {
  return request({
    url: '/product/productAttributeCategory/update',
    method: 'post',
    data
  })
}



export function saveProductAttributeCategory(data) {
  return request({
    url: '/product/productAttributeCategory/saveProductAttributeCategory',
    method: 'post',
    data
  })
}




